package com.guo.pet_store.admin.service;

import com.guo.pet_store.admin.pojo.PetType;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;

import java.lang.reflect.Type;
import java.util.List;

public interface TypeService {
    Page<PetType> listType(Pageable pageable);
    List<PetType> listType();
    PetType saveType(PetType type);
    PetType selectAType(Long typeId);
    PetType getAPetType(Long id);

    void editType(Long id, String name);

    void deleteType(Long typeId);
    List<PetType> parentType();
    List<PetType> sonType(Long parentId);
//    得到所有不为父的种类
    List<PetType> listSonType();
}
